local js_shishou = fk.CreateSkill {
  name = "js__shishou",
  tags={Skill.Compulsory}
}


js_shishou:addEffect(fk.CardUsing , {
  anim_type = "negative",
  can_trigger = function(self, event, target, player, data)
    if target == player and player:hasSkill(self) then
      return data.card.trueName == "analeptic"
    end
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    player:drawCards(3, self.name)
    room:setPlayerMark(player, "@js__shishou-turn", 1)
  end,
})
js_shishou:addEffect(fk.Damaged , {
  anim_type = "negative",
  can_trigger = function(self, event, target, player, data)
    if target == player and player:hasSkill(self) then
      return data.damageType == fk.FireDamage
    end
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:setPlayerMark(player, "@js__cangchu", 1)
  end,
})

js_shishou:addEffect(fk.AfterTurnEnd , {
  can_refresh = function(self, event, target, player, data)
    return target == player and player:getMark("@js__cangchu") > 0
  end,
  on_refresh = function(self, event, target, player, data)
    player.room:setPlayerMark(player, "@js__cangchu", 0)
  end,
})

js_shishou:addEffect("prohibit" , {
  prohibit_use = function(self, player, card)
    return player:getMark("@js__shishou-turn") > 0
  end,
})
return js_shishou